package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.SOrderDetail;

import java.math.BigDecimal;
import java.util.List;

public interface SOrderDetailService {

    /**
     * @param orderId 订单id
     * @Title: getDetailsByOrderId
     * @Description: 根据客户订单id查询车辆详情
     * @return: List<SOrderDetail>
     */
    List<SOrderDetail> getDetailsByOrderId(long orderId);

    /**
     * @param detailId 客户订单详情ID
     * @return
     * @Title: getByOrderIdAndDetailId
     * @Description: 根据id查询客户订单详情
     * @return: SOrderDetail
     */
    SOrderDetail getById(long detailId);

    /**
     * @param customerOrderId 客户订单id
     * @Title: deleteByCOrderId
     * @Description: 根据客户订单id删除客户订单车辆详情
     * @return: void
     */
    void deleteByCOrderId(long customerOrderId);

    /**
     * @param baseShippingFee 基础运价
     * @param customerOrderId 客户订单id
     * @Title: calculateVehicleClassFactor
     * @Description: 计算客户订单车辆运输价
     * @return: BigDecimal
     */
    BigDecimal calculateVehicleClassFactor(BigDecimal baseShippingFee, long customerOrderId);

}
